home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.compilers / comp.sys.amiga.programmer_7694_000029.msg < prev    next >
Encoding:
Text File  |  1994-11-27  |  2.6 KB  |  58 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: dd.chalmers.se!news.chalmers.se!sunic!pipex!howland.reston.ans.net!europa.eng.gtefsd.com!emory!news-feed-2.peachnet.edu!concert!sas!mozart.unx.sas.com!walker
  3. From: walker@twix.unx.sas.com (Doug Walker)
  4. Subject: Re: CPR wish list (Was: Re: Wanted: Aztec C Bugs...err...)
  5. Originator: walker@twix.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <Cn0p81.96K@unx.sas.com>
  8. Date: Mon, 21 Mar 1994 13:52:48 GMT
  9. References: <763178404.AA00960@1choice.login.qc.ca> <heinz.0jsh@hwg.muc.de> <herbert.04zo@lynn.adsp.sub.org> <heinz.0jw3@hwg.muc.de>
  10. Nntp-Posting-Host: twix.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 45
  13.  
  14.  
  15. In article <heinz.0jw3@hwg.muc.de>, heinz@hwg.muc.de (Heinz Wrobel) writes:
  16. |> Pretty much the only "features" I miss from db/sdb, is that you can't run
  17. |> CPR standalone without something to debug and that you can't define symbols
  18.  
  19. No, but "cpr c:dir" is a good workaround.  You can then catch the
  20. tasks you want to debug and detach the original task.
  21.  
  22. |> like you could with db and the "v/V" commands. This came in handy very
  23. |> often when I had too look at unknown assembly code. I could just set
  24. |> "labels" at the points I wanted to remember by defining symbols. No, I am
  25. |> not doing illegal things, but I already had to trace devices, link libs and
  26. |> even functions in KS images to find obscure bugs. I just loved that
  27. |> feature.
  28.  
  29. The "define" command in CPR helps you work around this somewhat.  No,
  30. you can't define a label that will show up in the disassembly, but you
  31. can say "define foo 0x7ef4430" to define a shorthand for that address.
  32. The define command works just like a #define in C, so you can give it
  33. macro-style arguments as well:  
  34.  
  35.    define foo(x) ((struct FOO *)(x+0x20))
  36.    d foo(x)->field
  37.  
  38. Your other suggestions are good ones, and are either already in our
  39. database or will be soon.
  40.  
  41. |> To you non SAS/S users out there: CPR is by no means bad. It is actually
  42. |> rather great like all of SAS/C. But it could IMHO still be improved.
  43.  
  44. It's always possible to improve, and it helps to have good suggestions.
  45. Thanks for the input.
  46.  
  47. |> Heinz Wrobel        Edotronik GmbH: heinz@edohwg.adsp.sub.org
  48. |>                     Private Mail:   heinz@hwg.muc.de
  49. |> My private FAX: +49 89 850 51 25, I prefer email
  50.  
  51. -- 
  52.   *****                    / walker@unx.sas.com
  53.  *|_o_o|\\     Doug Walker<  BIX, Portal: djwalker
  54.  *|. o.| ||                \ CompuServe: 71165,2274
  55.   | o  |//     
  56.   ====== 
  57. Any opinions expressed are mine, not those of SAS Institute, Inc.
  58.